POV-Ray : Newsgroups : povray.unofficial.patches : who can explain ? : who can explain ? Server Time
1 Jun 2024 20:59:16 EDT (-0400)
  who can explain ?  
From: Wlodzimierz ABX Skiba
Date: 8 Jan 2001 10:29:29
Message: <3a59dcd9$1@news.povray.org>
there is function destroy_single_object() in objects.c
(I'm talking about megapov 0.6a sources)
who can explain why it contains duplication of
destroying of bound and interior ?
there is such code (removed comments with NK):

  Destroy_Object(Object->Bound);
  Destroy_Interior((INTERIOR *)Object->Interior);
  Destroy_Transform(Object->UV_Trans);
  if (Object->Label!=NULL)
    POV_FREE(Object->Label);
  Destroy_Object (Object->Bound);
  Destroy_Interior((INTERIOR *)Object->Interior);

?

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.